<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
<div class="altcontent1"> 
		<div class="topcontent"> 	
		<?php 
                if(!isset($_SESSION))
                {
                   // echo 'phuc khin';
                    session_start(); 
                }
                if (isset($_SESSION['logged']))
		{
			if ($_SESSION['logged']==true)
			{ ?><p>Chào mừng <?php echo  $_SESSION['user'][1];  ?> . <a href="/cfshop/logout.php">Thoát</a><a href="/cfshop/User/change_pass.php">Đổi Mật khẩu</a>  </p></div>
			<?php }
			else  {?> <p>	<a href="/cfshop/User/v_login.php">Đăng Nhập </a>  . <a href="/cfshop/User/register.php">  Đăng Ký  </a>  </p></div><?php }
		}
		else { ?><p>	<a href="/cfshop/User/v_login.php">Đăng Nhập </a>  . <a href="/cfshop/User/register.php">  Đăng Ký  </a>  </p></div> <?php } ?>
	<div class="cart">
	<?php 
			$count=0;
		if(isset($_SESSION['cart']))
		{
		  $items = $_SESSION['cart'];
		  $count=count($items);
		}
		?>
		<p class="giohang">Giỏ hàng của bạn có : <?php echo $count;?> sản phẩm</p><!-- code php de lay so luong hang trong gio hien co-->
		<a class="storelink" href="/cfshop/ShoppingCart/Cart.php">Checkout  </a> <!--Chen link checkout-->
	</div>
	<div class="logo" >
        <p class="p1">Cake</p><p class="p2">Flower</p>

	</div>
     <div class="search">
	 <input id="inputstring" type="text" value="Tìm Kiếm" class="textbox-setting" onfocus="if (this.value=='Tìm kiếm') this.value='';" 
         onkeyup="lookup(this.value);"/> 
	 <input type="button" value="GO" class="buttonsearch" id="buttonsearch" />
           
	 </div> 
    
      <div class=" menutop">
		
      <ul class="menu">
	  <li class="event menu-item"><a id="linkmenu"  class="button" href="/cfshop/home.php"><span class="l"></span><span class="m" >Trang Chủ</span><span class="r"></span></a></li>
	  <li class="odd menu-item"><a class="button" href="/cfshop/gioithieu.php "><span class="l"></span><span class="m" >Giới thiệu</span><span class="r"></span></a></li>
	  <li class="event menu-item"><a class="button" href="/cfshop/Product/product.php "><span class="l"></span><span class="m" >Sản phẩm</span><span class="r"></span></a></li>
	  </ul>
	</div>
	 <div class=" menutop1">
		
      <ul class="menu">
	  <li class="event menu-item"><a class="button" href="/cfshop/Article/v_Article.php"><span class="l"></span><span class="m" >Bài Viết</span><span class="r"></span></a></li>
	  <li class="odd menu-item"><a class="button" href="/cfshop/lienhe.php "><span class="l"></span><span class="m" >Liên Hệ</span><span class="r"></span></a></li>
	  <li class="event menu-item"><a class="button" href="/sanpham.php "><span class="l"></span><span class="m" > HƯớng dẫn</span><span class="r"></span></a></li>
	  </ul>	
	</div>
</div>
<div id="idsearch">
    <div id="borderidsearch">
         <div id="closesearch"></div>       
        <div id="contentidsearch" >
           <div>
            <form id="searchform">
               <div>  
                    <input id="valueSearch" type="text" size="30" value="" onkeyup="ResultSearch(this.value)" />
                    <div style="color:#6C0036; margin:10px; "><span style="font-size:12px;color:#C60000">Bạn muốn tìm kiếm theo?<span>
                   <select name="selectSearch" style="font-size:14px; padding:5px; width:180px;" onchange="SearchOption(this.value)">                     
                       <option value="1">Sản phẩm khuyến mãi</option>
                       <option value="2">Top sản phẩm được bán chạy nhất</option>
                       <option value="3">Giá</option>
                   </select>
                   </div>
                       
               </div>
                <div id="suggestions"><p style="text-align: center;" id="loading"></p></div>
            </form>
            </div>
       </div>
    </div>
    </div>
</body>
</html>
